]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ibusCandidatePopup: Use plain actor as dummy cursor
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 29 Jun 2021 19:17:27 +0000 (21:17 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 29 Jun 2021 20:47:58 +0000 (22:47 +0200)
Now that source actors no longer have to be widgets, we can use
a plain actor for the dummy cursor and save a bit of overhead.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1903>

js/ui/ibusCandidatePopup.js

index 6c497b2e93589c016b67c9a99a5657a7403433ba..5a9fe77928bee8f1edf1b5647dbc8fe9c97efac3 100644 (file)
@@ -146,7 +146,7 @@ class IbusCandidatePopup extends BoxPointer.BoxPointer {
         this.visible = false;
         this.style_class = 'candidate-popup-boxpointer';
 
-        this._dummyCursor = new St.Widget({ opacity: 0 });
+        this._dummyCursor = new Clutter.Actor({ opacity: 0 });
         Main.layoutManager.uiGroup.add_actor(this._dummyCursor);
 
         Main.layoutManager.addChrome(this);